<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mdsproject/mds_productiontasklog/Mds_ProductionTaskLog.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mdsproject/mds_productiontasklog/Mds_ProductionTaskLog.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Mds_ProductionTaskLog",
        setup() {
            const table = ref({
                key: "ProductionTaskLogId",
                footer: "Foots",
                cnName: "生产任务日志",
                name: "mds_productiontasklog/Mds_ProductionTaskLog",
                newTabEdit: false,
                url: "/Mds_ProductionTaskLog/",
                sortName: "ProductionTaskLogId"
            });
            const editFormFields = ref({"ProductionTaskId":"","LogType":"","LogContent":"","Msg1":"","Msg2":"","Remarks":""});
            const editFormOptions = ref([[{"title":"生产任务","field":"ProductionTaskId","type":"number"},
                               {"dataKey":"MDS_LogType","data":[],"title":"日志类型","field":"LogType","type":"select"}],
                              [{"title":"日志内容","field":"LogContent"},
                               {"title":"消息1","field":"Msg1"}],
                              [{"title":"消息2","field":"Msg2"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"ProductionTaskLogId",title:"ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"ProductionTaskId",title:"生产任务",type:"bigint",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"LogType",title:"日志类型",type:"int",bind:{ key:"MDS_LogType",data:[]},width:110,showOverflowTooltip:true,align:"left"},
                       {field:"LogContent",title:"日志内容",type:"string",width:500,showOverflowTooltip:true,align:"left"},
                       {field:"Msg1",title:"消息1",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Msg2",title:"消息2",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:150,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
